// 活动管理
import Layout from '@/layout'

const activityRouter = [
    {
        path: '/activity',
        component: Layout,
        redirect: '/activity/',
        alwaysShow: true,
        name: 'activity',
        meta: {
            title: '活动管理',
            roles: ['admin', 'editor'],
            icon: 'el-icon-arrow-right'
        },
        children: [
            // {
            //     path: 'promotion',
            //     component: () => import('@/views/activity/promotion'),
            //     name: 'activityPromotion',
            //     meta: { title: '促销管理' }
            // },
            {
                path: 'index',
                component: () => import('@/views/activity/index'),
                name: 'activeList',
                meta: {
                    title: '活动列表'
                }
            },
            // {
            //     path: 'coupon',
            //     component: () => import('@/views/activity/coupon'),
            //     name: 'coupon',
            //     meta: { title: '优惠劵' }
            // },
            {
                path: 'coupon/detail/:type/:id',
                component: () => import('@/views/activity/coupon/detail'),
                name: 'couponDetail',
                hidden: true,
                meta: { title: '优惠劵详情' }
            }
        ]
    }
]
export default activityRouter